package com.david.service;

import com.david.dao.WebSiteDao;
import com.david.entity.WebSite;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class WebSiteService {

    @Resource
    WebSiteDao dao;

    /**
     * 获取基本信息
     * @return
     */
    public WebSite GetWebSite(){
        return dao.GetWebSite();
    }

    /**
     * 更新基本信息
     * @param site
     * @return
     */
    public int UpdateWebSite(WebSite site){
        return dao.UpdateWebSite(site);
    }
}
